#*******************************************************************
#* @ All Rights Reserved Copyright (C) 2014 broada,Co.,Ltd.        *
#*                                                                 *
#*  NOTE      = 预处理                                             *
#*  DATE      =                                                    *
#*******************************************************************

PRE_L7_NAME_B :=$(shell echo $(L7_NAME) | tr a-z A-Z )
PRE_COMPILE_TIME :=$(shell date "+%Y-%m-%d %H:%M:%S")

prepare:
	echo -e "#ifndef __$(PRE_L7_NAME_B)_USERDEF_H_\n#define __$(PRE_L7_NAME_B)_USERDEF_H_\n" >  config.h
	echo -e "#define MODULE_L4PROTO   \"$(L4_PROTO)\"" >> config.h
	echo -e "#define MODULE_L7PROTO   $(L7_PROTO)" >> config.h
	echo -e "#define MODULE_NAME      \"$(L7_NAME)\"" >> config.h
	echo -e "#define MODULE_VERSION   \"$(MODULE_VERSION)\"\n" >> config.h
	echo -e "#define MODULE_TIME      \"$(PRE_COMPILE_TIME)\"\n" >> config.h
	echo -e "#endif\n\n" >>  config.h
